/*
 * @Author: 李惠婵 lihuichan@yxhyidc.com
 * @Date: 2022-06-29 17:10:24
 * @LastEditors: 李惠婵 lihuichan@yxhyidc.com
 * @LastEditTime: 2022-09-14 18:25:01
 * @FilePath: \robot-webd:\project\rural-revitalization-web\src\api\areacode.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'
/*获取省*/
export function ProvinceSelect(query,belongAreaCode) {
    if(belongAreaCode) {
        if(belongAreaCode.length < query.areaCode.length) {
            query.selectAreaCode = undefined
        }
    }
    return request({
        url: `system/area/parentCode`,
        method: 'GET',
        params: query
    })
}
